package com.wy.two.Adapter;

/**
 * @author 33117
 * @version 1.0
 * @data 2025/3/11 14:08
 */
public class AdapterPatternExample {
    public static void main(String[] args) {
        LegacyRectangle legacyRectangle = new LegacyRectangle();
        Shape shapeAdapter = new RectangleAdapter(legacyRectangle);

        shapeAdapter.draw(10, 20, 50, 30);
    }
}
